<?
    class Principio_Model_Firmware
    {

        private $id;
        private $fileName;
        private $version;
        private $caption;

        private $vendor_id; // Not Used

        public function __construct(&$values = null)
        {
            if (is_null($values))
            {
                $this->id = -1;
                $this->vendor_id = 0;
                $this->fileName = "";
                $this->version = "";
                $this->caption = "";
            }
            else
            {
                $this->id = isset($values['id']) ? $values['id'] : -1;
                $this->vendor_id = $values['vendor_id'];
                $this->fileName = $values['filename'];
                $this->version = $values['version'];
                $this->caption = $values['caption'];
            };
        }


        public function getID() { return $this->id; }
        public function getVersion() { return $this->version; }
        public function getFileName() { return $this->fileName; }
        public function getCaption() { return $this->caption; }


        public function setVersion($version)
        {
            $this->version = $version;
            return $this;
        }


        public function setFileName($fileName)
        {
            $this->fileName = $fileName;
            return $this;
        }


        public function setCaption($caption)
        {
            $this->caption = $caption;
            return $this;
        }


        public function setID($id)
        {
            $id_ = intval($id);
            if ($id > 0)
            {
                $this->id = $id_;
                return $this;
            }
            else
                return false;
        }



        /*
         * Not Used
         */
        public function getVendorID() { return $this->vendor_id; }

        /*
         * Not Used
         */
        public function setVendorID($vendor_id)
        {
            $vendor_id_ = intval($vendor_id);
            if ($vendor_id > 0)
            {
                $this->vendor_id = $vendor_id_;
                return $this;
            }
            else
                return false;
        }

    }
?>